<template>
  <view>
    <button @click="logout">退出登录</button>
  </view>
</template>

<script setup lang="ts">
const logout = () => {
  uni.clearStorageSync();
  uni.reLaunch({
    url: "/pages/login/login",
  });
};
</script>

<style scoped></style>
